class CreatePermissions < ActiveRecord::Migration[5.2]
  def change
    create_table :permissions do |t|
      # t.integer :menu_id, comment: "功能主键"
      t.string :name,null:false,comment:"权限名（英文）"
      t.string :label
      t.string :des, comment: "简介"
      t.integer :kind,  null: false, default: 0,comment: "类型"
      t.integer :display_order,  default: 0,comment: "顺序"
      t.integer :has_son, null: false, default: 0, comment: "是否有子"
      t.timestamps
    end
  end
end
